let a1;
a1 = {};
a1 = function () { };
//用于指定哪些属性
let b1; //加上问好表示属性可选
b1 = { name: "孙悟空" };
let c1; // [propName: string]: any表示可以有任意类型的属性
c1 = { name: "猪八戒", age: 18, gender: "male" };
//定义函数的参数结构 的类型声明
let d1;
d1 = function (a, b) {
    return a + b;
};
//数组
let e1; //表示字符串数组
e1 = ["a", "b", "c", "d"];
let f1;
let g1;
//元组
/**
 * 语法: [类型，类型，类型]
 */
let h1;
h1 = ["hello", "world", 123];
//枚举
/**
 *enum
 */
var Gender;
(function (Gender) {
    Gender[Gender["Male"] = 0] = "Male";
    Gender[Gender["Female"] = 1] = "Female";
})(Gender || (Gender = {}));
let i1;
i1 = {
    name: "孙悟空",
    gender: Gender.Male,
};
console.log(i1.gender === Gender.Female);
// |  表示或   & 表示且
let j1;
j1 = { name: "孙悟空", age: 18 };
